<?php
namespace app\admin\model;

class AdminRole extends \think\Model
{
    public function getRoleName($id)
    {
        return $this->where('id', $id)->value('name');
    }
}
